import { local } from "@/utils/storage"; //利用本地存储用户个人信息

export function setLocalInfo(info) {
  local.set('info',info)
}

export function getLocalInfo() {
  // console.log(local.get('info'));
  //如果localStorage中的info为null则返回空对象
  if (local.get('info')===null) return {}
  return local.get('info')
}

export function removeLocalInfo() {
  local.clear()
}
